<%@ page pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@include file="/views/inc/taglib.inc"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="vote/taglib" prefix="vote"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@include file="/views/inc/static.inc"%>
<link href="${HomeUrl}/views/css/qlist.css" rel="stylesheet"
	type="text/css" />
<link href="${HomeUrl}/views/css/register.css" rel="stylesheet"
	type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>注册</title>
</head>
<body>

<%@include file="/views/inc/user.inc"%>
<br />
<img src='${HomeUrl}/views/images/logo.jpg' width="1000" />
<br />
<div class="body"><%@include file="/views/inc/msgbox.inc"%>
<%@include file="/views/inc/grouplist.inc"%>


<div class="leftpanel">

<form action="user/register" method="post">
<div class="register_wrap">
<div class="register_row"><label class="labelStyle ">用户名：<b class="star"> * </b></label> <input type="text" name="userName" id="username" class="inputtext" /><input type="button" id="checkUser" class="qbutton" value="验证用户名是否可用"/> <input type="button" id="checkUser1" class="qbutton" value="用户名可用" style="display:none"/><h1>&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp&nbsp &nbsp &nbsp花30秒完成注册,你便可以:</h1></div>
<div class="register_row"><label class="labelStyle ">密码：<b class="star"> * </b></label> <input type="password" name="userPassword" id="password" class="inputtext"/><h1>&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp&nbsp &nbsp &nbsp发布自己的问卷,获得最新</h1></div>
<div class="register_row"><label class="labelStyle ">重复密码：<b class="star"> * </b></label> <input type="password" name="repassword" id="repassword" class="inputtext"/><h1>&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp&nbsp &nbsp &nbsp实用信息,与他人进行交流</h1></div>
<div class="register_row"><label class="labelStyle ">邮箱：<b class="star"> * </b></label> <input type="text" name="userEmail" id="email"  class="inputtext"/><h1>&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp&nbsp &nbsp &nbsp沟通无极限!!!</h1></div>
<div class="register_row"><label class="labelStyle ">&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp  </label> <input type="submit"  value="注册" class="qbutton" id="submitButton" style="display:none"/></div>

</div>
</form>


</div>

<div class="rightpanel">
<div class="hotandlast_questionnaire"><%@include
	file="/views/inc/hotandlastest.inc"%></div>
</div>
<div class="none" /></div>
<%@include file="/views/inc/copyright.inc" %>
<script type="text/javascript" src="views/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
    $(function(){
    $("#checkUser").click(function()
    {
     var userName=$("#username").val();
     $.post("user/checkName",{userName:userName},function(r){
     if(r.code==1)
       {
       $("#checkUser").hide();
       $("#checkUser1").show();
       $("#submitButton").show();
       }
       else
       {
         alert("该用户名已被注册，请重新选择新的用户名");
       }
     
     },"json");
    });
   
    });
</script>
</body>
</html>